package com.example.testdemo.controller;

import com.example.testdemo.model.Dbtypes;
import com.example.testdemo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class YmlController {

    @Autowired
    private Student student;

    @Autowired
    private Dbtypes dbtypes;

    public void yml() {
        System.out.println(student);
        System.out.println("list中的内容:" + dbtypes.getName() + ",长度为:" + dbtypes.getName().size());
    }
}
